package com.javafactroy.kunlong.test.mockito;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SomeBusiness {
    DataService dataService;

    public List<String> fetchAllData() {
        return dataService.getAll();
    }

    public DataService getDataService() {
        return dataService;
    }

    @Autowired
    public void setDataService(DataService dataService) {
        this.dataService = dataService;
    }
}